<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>

<!DOCTYPE HTML >
<html>
  <head>
    <meta charset="utf-8">
  	<meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title></title>
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!-- Vendor CSS-->
		<link href="${weiZe }/assets/vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet" />
		<link href="${weiZe }/assets/vendor/skycons/css/skycons.css" rel="stylesheet" />
		<link href="${weiZe }/assets/vendor/font-awesome/css/font-awesome.min.css" rel="stylesheet" />
		<link href="${weiZe }/assets/vendor/css/pace.preloader.css" rel="stylesheet" />
		<!-- Plugins CSS-->
		<link href="${weiZe }/assets/plugins/bootkit/css/bootkit.css" rel="stylesheet" />
		<link href="${weiZe }/assets/plugins/pnotify/css/pnotify.custom.css" rel="stylesheet" />					
		<!-- Theme CSS -->
		<link href="${weiZe }/assets/page/css/index/jquery.mmenu.css" rel="stylesheet " />
		<!-- Page CSS -->		
		<link href="${weiZe }/assets/page/css/index/index.css" rel="stylesheet" />
		<link href="${weiZe }/assets/page/css/index/add-ons.min.css" rel="stylesheet" />
		<!-- end: CSS file-->	
		<!-- Head Libs -->
		<script src="${weiZe }/assets/plugins/modernizr/js/modernizr.js"></script>

  </head>
  
  <body>
   
		<sys:message content="${message}"/>
		<table id="contentTable" class="table table-striped table-bordered table-condensed">
		<thead>
			<tr>
				<th>订单编号</th>
				<th>车辆/挂车</th>
				<th>托运方</th>
				<th colspan="2">装货地址</th>
				<th colspan="3">收货单位</th>
				<th colspan="3">收货地址</th>
				<th colspan="3">品名</th>
				<th colspan="3">重量(吨/t)</th>
				<th colspan="3">运价</th>
				<th colspan="3">运费</th>
				<th>出车时间</th>
				<th>创建时间</th>
				<th>更新时间</th>
				<th>备注</th>
				<th>运单状态</th>
				<shiro:hasPermission name="tb_waybill:tbWaybill:edit"><th>操作</th></shiro:hasPermission>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${page.list}" var="tbWaybill">
			<tr>
				<td><a href="${ctx}/tb_waybill/tbWaybill/form?id=${tbWaybill.id}">
					${tbWaybill.waybillNum}
				</a></td>
				<td>${tbWaybill.tbCarInfo.carCode }/${tbWaybill.tbCarInfo.carGCode }</td>
				<td>${tbWaybill.tbGoodsConsignmentCompany.shortName}</td>
				<%--装货地址 --%>
				<td>${tbWaybill.tbLoadingAddress.shortName}</td>
				<td>${tbWaybill.tbLoadingAddressTwo.shortName}</td>
				<%--装货地址 end--%>
				<%--收货公司 --%>
				<td>${tbWaybill.tbWaybillDetailOne.tbGoodsReceiptCompany.shortName }</td>
				<td>${tbWaybill.tbWaybillDetailTwo.tbGoodsReceiptCompany.shortName }</td>
				<td>${tbWaybill.tbWaybillDetailThree.tbGoodsReceiptCompany.shortName }</td>
				<%--收货公司 结束--%>
				<%--收货地址 --%>
				<td>${tbWaybill.tbWaybillDetailOne.tbDischargeCargoAddress.shortName }</td>
				<td>${tbWaybill.tbWaybillDetailTwo.tbDischargeCargoAddress.shortName }</td>
				<td>${tbWaybill.tbWaybillDetailThree.tbDischargeCargoAddress.shortName }</td>
				<%--收货地址 end--%>
				<%--品名 --%>
					<td>${tbWaybill.tbWaybillDetailOne.tbGoods.goodName }</td>
					<td>${tbWaybill.tbWaybillDetailTwo.tbGoods.goodName }</td>
					<td>${tbWaybill.tbWaybillDetailThree.tbGoods.goodName }</td>
				<%--品名 end--%>
				<%--重量 --%>
					<td>${tbWaybill.tbWaybillDetailOne.weight }</td>
					<td>${tbWaybill.tbWaybillDetailTwo.weight }</td>
					<td>${tbWaybill.tbWaybillDetailThree.weight }</td>
				<%--重量 end--%>
				<%--运价 --%>
					<td>${tbWaybill.tbWaybillDetailOne.unitPrice }</td>
					<td>${tbWaybill.tbWaybillDetailTwo.unitPrice }</td>
					<td>${tbWaybill.tbWaybillDetailThree.unitPrice }</td>
				<%--运价 end--%>
				<%--运费 --%>
					<td>${tbWaybill.tbWaybillDetailOne.money }</td>
					<td>${tbWaybill.tbWaybillDetailTwo.money }</td>
					<td>${tbWaybill.tbWaybillDetailThree.money }</td>
				<%-- 运费end--%>
				<td>
					<fmt:formatDate value="${tbWaybill.outCarTime}" pattern="yyyy-MM-dd"/>
				</td>
				<td>
					<fmt:formatDate value="${tbWaybill.createDate}" pattern="yyyy-MM-dd HH:mm:ss"/>
				</td>
				<td>
					<fmt:formatDate value="${tbWaybill.updateDate}" pattern="yyyy-MM-dd HH:mm:ss"/>
				</td>
				<td>
					${tbWaybill.remarks}
				</td>
				<td>${fns:getDictLabel(tbWaybill.state, 'waybill_state', '')}</td>
				<td>
    				<a href="${ctx }/tb_waybill/tbWaybill/auditInTransitEdit?tbWaybillId=${tbWaybill.id}"><small class="label pull-right bg-green">GO>>></small></a>
				</td>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
  </body>
  <!-- Vendor JS-->				
		<script src="${weiZe }/assets/vendor/js/jquery.min.js"></script>
		<script src="${weiZe }/assets/vendor/js/jquery-2.1.1.min.js"></script>
		<script src="${weiZe }/assets/vendor/js/jquery-migrate-1.2.1.min.js"></script>
		<script src="${weiZe }/assets/vendor/bootstrap/js/bootstrap.min.js"></script>
		<script src="${weiZe }/assets/vendor/skycons/js/skycons.js"></script>	
		<script src="${weiZe }/assets/vendor/js/pace.min.js"></script>
		
		<!-- Plugins JS-->
		<script src="${weiZe }/assets/plugins/autosize/jquery.autosize.min.js"></script>
		<script src="${weiZe }/assets/plugins/jquery-validation/js/jquery.validate.js"></script>
		<script src="${weiZe }/assets/plugins/wizard/js/jquery.bootstrap.wizard.min.js"></script>
		<script src="${weiZe }/assets/plugins/pnotify/js/pnotify.custom.js"></script>	
		<script src="${weiZe }/assets/plugins/sparkline/js/jquery.sparkline.min.js"></script>
		
		<!-- Theme JS -->		
		<script src="${weiZe }/assets/js/jquery.mmenu.min.js"></script>
		<script src="${weiZe }/assets/js/core.min.js"></script>
		
		<!-- Pages JS -->
		<script src="${weiZe }/assets/page/js/newCarlist/newCarlist.js"></script>		
		<script src="${ctxStatic }/My97DatePicker/WdatePicker.js"></script>
</html>
